package com.sunchen.asc.service.user.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel(value="InsertRoleVo",description="角色vo对象")
public class InsertRoleVo {

    @ApiModelProperty(value="主键",name="id")
    private String id;

    @ApiModelProperty(value="编码",name="name")
    @NotEmpty(message = "编码不能为空")
    private String name;

    private Integer status;

    @ApiModelProperty(value="名称",name="title")
    @NotEmpty(message = "名称不能为空")
    private String title;

    @ApiModelProperty(value="描述",name="description")
    private String description;

    @ApiModelProperty(value="权限id",name="authIds")
    @NotNull
    private List<Long> authIds;
}
